package com.boardgame.gwt.service.operate;

import com.boardgame.gwt.service.operate.action.MoveAction;
import com.boardgame.gwt.service.operate.action.PassAction;
import com.boardgame.gwt.service.operate.action.buy.BuyWorker0Action;
import com.boardgame.gwt.service.operate.action.buy.BuyWorker2Action;
import com.boardgame.gwt.service.operate.action.platcard.PlayGreenCardAction;
import com.boardgame.gwt.service.operate.action.platcard.PlayPairCardAction;
import com.boardgame.gwt.service.operate.action.platcard.PlayWhiteCardAction;

import java.util.ArrayList;
import java.util.List;

/**
 * 匹配命令
 * @author henry
 * @date 02.26
 */
public class SyntaxRegex {

    //匹配列表
    public static List<SyntaxBaseAction> listSyntax = new ArrayList<>();
    static {
        listSyntax.add(new MoveAction());
        listSyntax.add(new PassAction());
        //打牌
        listSyntax.add(new PlayGreenCardAction());
        listSyntax.add(new PlayGreenCardAction());
        listSyntax.add(new PlayWhiteCardAction());
        //一对牌
        listSyntax.add(new PlayPairCardAction());
        //买人
        listSyntax.add(new BuyWorker0Action());
        listSyntax.add(new BuyWorker2Action());
    }
}
